﻿using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 车型基础输入参数
    /// </summary>
    public class testdbBaseInput
    {
        /// <summary>
        /// 标题
        /// </summary>
        public virtual string? title { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        public virtual string? desc { get; set; }
        
        /// <summary>
        /// 打开显示
        /// </summary>
        public virtual bool? isShow { get; set; }
        
    }

    /// <summary>
    /// 车型分页查询输入参数
    /// </summary>
    public class testdbInput : BasePageInput
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string? title { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        public string? desc { get; set; }
        
        /// <summary>
        /// 打开显示
        /// </summary>
        public bool? isShow { get; set; }
        
    }

    /// <summary>
    /// 车型增加输入参数
    /// </summary>
    public class AddtestdbInput : testdbBaseInput
    {
    }

    /// <summary>
    /// 车型删除输入参数
    /// </summary>
    public class DeletetestdbInput : BaseIdInput
    {
    }

    /// <summary>
    /// 车型更新输入参数
    /// </summary>
    public class UpdatetestdbInput : testdbBaseInput
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 车型主键查询输入参数
    /// </summary>
    public class QueryByIdtestdbInput : DeletetestdbInput
    {

    }
